/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-17 14:00:30
 * Copyright (c) 2015- -版权所有
 */

package com.joysuch.wwyt.edu.service;

import com.joysuch.wwyt.core.bean.BatchUploadResult;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import com.joysuch.wwyt.edu.bean.EduCertUserQueryBean;
import com.joysuch.wwyt.edu.bean.EduCertificateUserDetailBean;
import com.joysuch.wwyt.edu.bean.EduCertificateUserEditBean;
import com.joysuch.wwyt.edu.bean.EduCertificateUserListBean;
import com.joysuch.wwyt.edu.bean.EduCertificateUserListBean.SearchEduCertificateUser;
import com.joysuch.wwyt.edu.entity.EduCertificateUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

public interface EduCertificateUserService {

    public EduCertificateUser add(EduCertificateUserEditBean entity);

    void update(EduCertificateUserEditBean entity);

    Page<EduCertificateUserListBean> findByPage(Pageable page, SearchEduCertificateUser condition);

    void delete(Long id) throws BusinessRestrictionsException;

    EduCertificateUserDetailBean getById(Long id);

    EduCertificateUser findById(Long id);

    ResultBean certPage(EduCertUserQueryBean bean, Pageable pageable);

    ResultBean userInfoCert(Pageable pageable, Long userId, Integer userContractorFlag);

    void setCertStatus(EduCertificateUser entity);

    public BatchUploadResult batchUploadImages(MultipartFile file);

}
